﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Site3AI.Models;

namespace M3AI.Services
{
    public class MyViewPageBase : MyViewPageBase<dynamic> { }
    public class MyViewPageBase<T> : System.Web.Mvc.WebViewPage<T>
    {
        public DateTime Now
        {
            get
            {
                return MvcApplication.Now;
            }
        }
        public override void Execute()
        {
            ;
        }
        public aspnet_Users SiteUser
        {
            get
            {

                return (ViewBag.SiteUser as aspnet_Users);
            }
        }

        public string OnConfirmDel()
        {
            return "请问确认要删除此内容吗？删除后将无法恢复。";
        }

        public string SiteAssemblyVersion
        {
            get
            {
                return System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
            }
        }
    }
}